package datastructure.common;

/**
 * @author cyt
 * @create 2020-11-22 上午 11:47
 */
public interface List<E> {

    final int ELEMENT_NOT_FOUND = -1;

    E remove(int index);

    boolean isEmpty();

    void clear();

    E get(int index);

    void add(E e);

    int indexOf(E element);

    void add(int index, E element);

    E set(int index, E element);

    int size();

    boolean contain(E element);
}
